Build libgit2 manually

libgit2-dev package is available since Ubuntu 14.04,
but Travis CI is 12.04