Added support for FreeBSD