Enable linkage to libevent2 when HAVE_EVENT2_DNS_H defined.