[CMake] fix CMake win32 build