fix Makefile template for gcc-generated dependencies