fixed makefile so debug flag will work properly