now using LDADD instead of LDFLAGS; thanks to flazzarini