adding FreeBSD support