fixed compilation without -debug flag