Implement non-blocking I/O on Windows.