Fix FreeBSD builds.