Made engine code compilable for iOS