iOS 7 deprecation fixes