libcommon: Read the map state format version from the header