Trying to fix compilations errors in linesearch.