Fix the access denied on windows of cocos new.