make sure CURLOPT_TIMEOUT_MS only gets longs