Support libgcrypt >= 1.6
Following this thread, it seems a good idea to move on.
http://lists.gnupg.org/pipermail/gcrypt-devel/2014-July/003140.html
Given that you need Pthread anyway, you should change the main application to init the the threading system. However, a far better solution is to go with Libgcrypt 1.6 which uses pthreads native on Linux and the initialization task is thus much easier. 1.6. is also much faster and more cleaned up. I would really recommend to do that. There is an ABI break and thus there is no problem installing both runtime versions. Your modifications should be minimal to none (as you can see by the fact that it works with 1.6).
(from redmine: created on 2014-08-04)