put no-as-needed into LDADD to make sure it comes after LDFLAGS