nc: Only expand debug macros if DEBUG is defined