[CMake] fix CMake win32 build (missing changes)