FreeBSD-specific fix