Successfully compiled on FreeBSD 10.0.
Merge pull request #18 from sergev/master

Changes required to compile on FreeBSD 10.0