Fix compile errors on Xcode 5.1 iOS SDK 7.1