Fix potential issue in LDFLAGS export