Fixed #5021: Upgrade to cocos2d-x branch v3 and fix errors in binding