Add LDFLAGS variable to simple makefile templates.