Makefile optimizations for windows support