misc windows fixes including libcurl support