Help gnupg2 find libresolv

Fixes #21431.