cmake buildfix on windows