Makefile improvment

The Makefiles is now using correct way to add flags to cc/c++ and able to compile the debug build.