[FreeBSD]: fixes

Fixed build on FreeBSD.