made libgit2 optional dependency