Fix linking against mysql