Bunch of Mac fixes

Fixes https://bugs.openmw.org/issues/1045 & https://bugs.openmw.org/issues/1041

@kcat could you please review this commit https://github.com/corristo/openmw/commit/fc21dd1f3afc44ba13a3c868690964b6b636daf9 ?