fixing read and write for Windows

reads used to have to wait for 4k or 8k buffer to fill, this fixes that