Ensure TCP socket; fixes cassandra-cql for OS X

On OS X, `getAddrInfo` seems to return `DGRAM` before `STREAM`, hence the connection refused errors mentioned in issue #1. This patch should fix this, and is tested ok on OS X with the latest `haskell-platform`. Unfortunately, I don't have any other environments readily available for more testing.