fixes and stuff for building on windows