Fix run in Ubuntu and build by cocos2dx-console