update lib for cocos2d-x 3.1 & 3.0