Add support for iOS 5