Initial windows implementation of read_nonblock