Add Mac OS X cross compilation support

... and does some minor cleanup in `engine/main.cpp` and also adds an `NOCOMPATHACK` option as `remove_symbol_version` doesn't work on my system.