Fix compilation (doh)

It helps to test dbg-scan.cc compiles with FULLDEBUG...
Avoid some copying.