Support freebsd
Merge pull request #5 from wavify/master

Support freebsd