added debug flag in makefiles