Store segment start offset in edi_segment_struct_t
Better error reporting: show offset of bad segment and part of it's text