patch build files for cross compiling osx on linux
patch tweak for osx building