added FreeBSD support
Merge pull request #15 from Freeaqingme/master

added FreeBSD support