Fix crash in iOS 6 when app compile with iOS 8 SDK