Fix build with gpgme < 1.14.1

2 jobs for master
Status Job ID Name Coverage
  Build
canceled build_clazy_clang_tidy #85963

canceled linux kf5-qt5 qt5.15 #85962