FreeBSD fixes

Minor fixes needed to build OpenXcom on FreeBSD