Hi,
I don't have first hand experiencie with this mingw64 tool so I can't give you advice. You can build tilengine samples with mingw32, visual studio community, or get support for mingw64 in its official forum about how to use it:
https://sourceforge.net/projects/mingw-w64/support