Fix errors for cocos2d-x 3.3

Fixed compilation errors,