Use non-blocking connect on first query

Passive connect used to be blocking but this was causing issues in
Linux.  Passive connect on first query is now non-blocking.

Fixes #39