Revert "Fixing BSD build failure"

This reverts commit 4f46fbac7447ddf12ce07cd2fa54c0d3d4fe9b3a.
Maybe finally fixed the kFreeBSD build failure