Fix build errors under FreeBSD