Fix Xcode 4 compatibility

Some iOS SDK 7-only prevent successful building on Xcode 4.x (Base SDK iOS 6).