Initial work on a cross-compiler for OSX
Fixes for cross-compiling OSX