[windows] Fix build with latest Qt and CMake