Fix build on FreeBSD 9.x amd64
Merge pull request #29 from asergi/master

Fix build on FreeBSD 9.x amd64