FreeBSD compat
Merge pull request #4 from Freeaqingme/master

FreeBSD compat