add support for cocos2dx