Crash fix for iOS 5 and 6.

Fixes *crash* on iOS 6.x and previous ones for Apps compiled with Xcode 6.