Fixed implementation of select()

Updated ftpclient, irc and scgi to take fix into account