select for Linux needs the nfds parameter set correctly