windows compilation tweaks