Merge pull request #371 from libgit2/static-dynamic

Allow building statically via the "static" build tag