Fix libgcrypt to build and run tests.

I had to patch llvm-ar to properly extract archives made
by libtool. The patch is in https://github.com/amatus/llvm.
The first non-trivial test fails with:
Fatal: no entropy gathering module detected