curl: Add support for specifying a connection timeout