pegbox: debug: Add a BUILD_BUG_ON macro

Moved flags.inc to debug.inc and defined the above macro therein.