Fix the build on FreeBSD