fix a clang warning
add freebsd support
Merge pull request #3 from tpoechtrager/master

add freebsd support