Thanks, this fixes the last problem that I encountered.
The snapshot wxPython-4.1.2a1.dev5156+3500ac7a.tar.gz wxPython now compiles on MSYS2 and can be imported in python.
In needed to add a few more changes to build scripts but no change to the source code. Will update the proposed modifications shortly after testing.