cmCxxModuleMapper: add a query for the open mode for the modmap

GCC (MinGW) wants to use `\n` on Windows too.

Fixes: #25974
3 files changed