Attempt to support both BIND 9.11 and 9.16
Use LIBDNS_VERSION_MAJOR compatibility macro to provide
few workarounds to compile even with 9.11. Try to minimize
changes of public API, but not everywhere it was possible.
ldapdb_associate should be moved back to header, but it would require
header modified on configure time.