Modified to compile with patched MinGW.
Still broken: nothing visual shows up.
Passing to the other machine for tests.