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

add FreeBSD support