Made the SDK compatible with Cocos2dx