fixes #3702 failed to build on cocos2dx.