fix HAVE_THREADED_DNS