compatibility for curl on windows