Another cut at MINGW support #325