fix FD_SETSIZE handling in our poll() emulation