Shut up OpenSSL deprecation warnings on OS X >= 10.7
Add nonblocking connect support