changes for iOS 5 compile