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 if it is defined or not.
Merge pull request #6 from xuchunyang/master

Simplify debug macro