Handle non-blocking pipe reading on Windows