wrap read/write socket functions on mingw