Fix for obsolete Exit() on iOS.
Fixed some #if IPHONE to now be IOS like the framework project.