[FreeBSD]: fixes for freebsd
Merge pull request #1 from zloidemon/master

[FreeBSD]: fixes