cmake: Add missing HAVE_RESOLV_H define