Allow libgit2 to build for non-MS compilers