Fixed Makefile to detect mingw compiles correctly 2