Added support for FreeBSD.