Add ability to build and install git in deps/Makefile.
Addresses #1709