If we're using libz, make file_open() construct the open() flag