Added support for FreeBSD builds.