makefile improvements for compiling on windows