Adapt to the removal of roboptim::UserIntermediateCallback