move debug flag to DEBUG variable in Makefile