- enabled compatibility with cocos2d-x versions after 3.1.1