Fix .tar.gz unpacking in Windows

From http://docs.python.org/2/library/os.html#os.open:

"In particular, on Windows adding O_BINARY is needed to open files in binary mode"