Fixed errors with the previous changes to socket selector.

Fixes unintended behaviour on Windows introduced by the last change due to Window's different interpretation of FD_SETSIZE. (#153)