improve dependency generation for gcc.make template