CURL error: "getaddrinfo() thread failed to start "