Fix struct offsets in openFile{Read,Write}