Remove deprecation warnings for iOS 6/7+.