Replace _LDFLAGS with _LIBADD where needed