added ifdef DEBUG, fixed Makefile