Fix for libgcrypt 1.6.0

Quick fix to workaround removed functions in libgcrypt version 1.6.0