Fix more deprecation warnings for iOS7.