OS X build: update and fix libgcrypt and libgpg-error dependencies

Update dependency versions. Fix build errors. Exclude libgcrypt's doc 
directory from build, because it introduces new dependencies and we 
don't need it.