Makefile cleanups

Made sure that the make release performs correctly, and -g -DDEBUG is
used in one place and only in debugging