Adjust ldflags for solver