bin/read_dump: fix compiler errors and simplify
bin/read_dump: fix compiler errors and simplify

This tool now loads the input file in memory and delegates the whole
parsing to the frame structure.

bagder/spindly,bagder/spindly,bagder/spindly