refactor gcc/Makefile a bit