Add more Windows IO functions
Merge branch 'master' into multithread