Fix debug headers showing when debug is off

Fixes #51