fix cocos2dx v3.0 deprecated warnings