fix cmake errors on windows.