mysql: fix build on freebsd