fixes #3734 failed to build cocos2dx.