Use a submodule for libgit2

This makes building the static version easier as we know where the repo
is and that it's has a known-good version.
Adjust travis script to static