Sync to Cocos2d-x v3.2