added FreeBSD support
Freebsd support