Fix GPGME version check for pinentry mode functions
Expose pinentry mode functions to the mid level API