Fix compilation with #define DEBUG 0 in debug.h