winselect changed so that it fills the fd_sets correctly after the call and returns the correct number of triggered FDs