[travis] Install libgit2 correctly and define our language as c

Part of .travis.sh lovingly borrowed from:
    https://raw.github.com/libgit2/pygit2/master/.travis.sh