fixes for VC++ 2013 with libgit2