dirlisting: Don't allocate unneeded memory, save 104 bytes per entry

We need pointers, not full structs in toc.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>