Update for iOS7 and Cocos2D 2.2.2