Added mingw makefile
added mingw stuff for building
fixed CRT stuff for windoze