Fixing  on FreeBSD
Merge pull request #53 from gogreen53/master

Fixing dependent library compilation on FreeBSD 10