load_struct to generalize lump loading based on struct definition