random fixes + change the makefile for cross compiling to windows support