Fix MinGW makefile generation.