Revert "fix building errors on FreeBSD (#105897)"
This reverts commit 5c5eece6d85d5be3485f96a6da3905f2dd28331b.
Reverted https://github.com/pytorch/pytorch/pull/105897 on behalf of https://github.com/PaliC due to causing regressions on internal models ([comment](https://github.com/pytorch/pytorch/pull/105897#issuecomment-1652840218))