Use MSYS Makefiles instead of MinGW Makefiles