Modified Makefile to work with Mingw

Applied changes by @imbaczek