fix compile without libgit