Add dbgerr.h, debugging and error macros.