Some fixes to dbgconsole

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>