TS-2859: remove DBG macros to not generate warnings from GCC 4.9