Fix compilation on newer FreeBSD