Fix Windows tests after switch to CMake.