CMake: Restore support for compiling as C++11 on Windows

Fixes: #27505
2 files changed