Some extensions for cocos2d-x