Removed variable definitions in libgit2 script that impacted the compiled result, and explicitly unset those variables as well. Build All now produces a working Android libgit2 library.
Also added an extra check for linking with the SSH library, just to be sure.