base64 class updated from cocos2d-x dev branch.