Make LOCALSOLVER_DLL a cache variable