Struggle with MinGW build. Unsuccessful yet.

See mingw-build.txt for details.