Fix --enable-debug flag.
Check for gpgme.
Don't include config.h in public header.
Always initialize ret.