use LDADD instead of AM_LDFLAGS