-Fix compilation errors under FreeBSD