Fix for support cocos2d-x 2.1.1