hash: use CommonCrypto on OSX for SHA-1

OSX has its own cryptographic library, let's make use of it instead of
calling out to OpenSSL.
Merge pull request #2645 from libgit2/cmn/common-crypto

[RFC] Use CommonCrypto for hashing