Instead of unequivocally adding `libgit2` to `STAGE1_DEPS` It would be good to add a `USE_SYSTEM_LIBGIT2` variable, and test it as below.  This will also involve modifying the Makefile and Make.inc in the root julia directory.