examples: fix linking problem by replacing LDFLAGS with LDADD