finally got makefile method working for mingw