fix freebsd build
Merge pull request #183 from myfreeweb/master

fix freebsd build