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

added FreeBSD support
Release v2.0.11
Solaris compatibility
Merge pull request #17 from Freeaqingme/master

Solaris compatibility
Release v2.0.12