Support for the clang subsystems on mingw

Just for my own records, there was this prior topic about this which contains links to further discussions relevant to (and almost like a backstage for) the merge-requests posted above: