If the OSX code in ios.sh is just for the simulator, using -Oz is fine