Eliminate compiler warnings from GTG and fix Makefiles

- Made GTG compile without warnings.
- Made the Makefiles actually clean object files when invoked with "make clean".