A hopefully better fix for commit 9f1c5fef1 when building with GpgME < 1.7.0.