System fixes

Fixes should helping building on GNU Hurd and kFreeBSD environments.

See the failing build matrix here:
https://buildd.debian.org/status/package.php?p=openmw&suite=experimental