Added patch for passing down LDFLAGS