Updated select in sockets.nim

Also corrected scgi's, irc's and ftpclient's usage of select