Adding support for FreeBSD