only build libgit if not built yet