fix comp/cmake errors on windows