add cmake to build libgit