Fix build with gpgme < 1.14.1

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

canceled #85962
linux kf5-qt5 qt5.15