use LDADD instead of LDFLAGS to add libraries