added ldflags to makefile templates