allow to build on FreeBSD
Merge pull request #338 from boda2004/master

allow to build on FreeBSD