Warning fixes for iOS 8.