Fix compilation for when HAVE_LIBGCRYPT is not defined