Add O_BINARY in open call, needed on Windows. If O_BINARY is not defined, define it to 0. --HG-- branch : HEAD