add FreeBSD support
Merge pull request #35 from mmoll/freebsd

Add FreeBSD support