Update Makefile with rudimentary debug build support. Add the -g flags and strip out the optimization flags.