Extensions for cocos2-x.