Allow select()ing up to 1024 file descriptors on Windows

Closes #2408.