changes to make LibGit work on Windows