Fixed issue when building for iOS 6.