Fix errors for cocos2d-x 3.3