Makefile: reduce duplication and clean up .gch files.