Fixed Makefile to detect mingw compiles correctly