app.mk: Put the -l linker options in TGT_LDLIBS

Any "-l" options belong in TGT_LDLIBS, not in TGT_LDFLAGS. Otherwise
the options may not be ordered correctly on the command line and the
link may fail.