[packages] mysql: fix compilation with gcc 4.6