small build improvements targeting FreeBSD

Closed username-removed-1365024 requested to merge lifanov1/open-adventure:freebsd into master