Don't uncompress when trying to write

* Common/Uncompress.cpp (fopen): Check that the mode is not read only.
(fopen): Ditto.
(open): Ditto.