unix: fixed build on freebsd
Merge pull request #2 from itsgoingd/fix-freebsd-build

unix: fixed build on freebsd