debug: some fixes to make it compile without debugging

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>