curl err: getaddrinfo() thread failed to start