Simplify debug macro

From "#if DEBUG" to "#ifdef DEBUG", We do not care the specific
value (0 or 1) of DEBUG, it is enough to know it is defined or not.