Correct linker settings for MSVS
Stub out pthread stuff on Windows
Build libgit2 as static library on windows