Fixes compilation issues with new Cocos2D version