add FreeBSD support
Merge pull request #23 from fraenki/freebsd

add FreeBSD support