Now working on Windows. Includes a couple of critical fixes (like number of bytes to read and the string parsing).