[FreeBSD]: fixed build on FreeBSD