Support older CMake (without negative length in SUBSTRING), simplify setting CBC_DEFAULT_SOLVER.