pegbox: fix the DEBUG flag (make it .if instead of .ifdef)

Also fixes a build error when DEBUG disabled.