Update Xcode project to recommended settings
refactored mirror code, inpreparemirrorglobal removed