Fix big endian on non-Mac
Fix big endian on non-Mac

Mac-specific functions aren't all that useful, simply replaces them with
a platform-agnostic implementation.

ladislav-zezula/StormLib,ladislav-zezula/StormLib