Updated for iOS 7 and arm64