Switch default to static linking

Build in libgit2 statically into git2go by default, removing the need
for the right version to be available as a shared object.

We do still need to link dynamically against OpenSSL and LibSSH2.
Move some logic into the Makefile

This should provide a nice compromise between the scripts and comon
commands.