Fix deprecation warnings in iOS 6 deployment targets