[PATCH] fix two mistakes in AM_LDFLAGS