Use LDADD instead of LDFLAGS for Makefile.

LDFLAGS seems to break on Ubuntu; LDADD is probably the
correct way of doing it.