Use gpgme interface for error handling to avoid linking with gpg-error.