Backport upstream patches to enable building with BIND 9.16.37
This resolves build problems with BIND9 9.16.36+, which had some breaking backported CVE fixes in bullseye. The hard bind9-libs dependency in the control file was also cherry-picked from master, which should make any future dependency issues more evident.