These files did not compile the std::min  under MSVC. The <cmath> header had to be included, and the template <float> had to be added to std::min  . Hoping this does not break the gcc compilation.
(Btw there is also CHmin() as an alternative, if we do not want to use the std::min.)
The upper-lower limits for free DOFs  in ChLinkLock had a problem (in upward motion, the motion was 'damped' because the stabilization coefficient of the upper unilateral constraint was working 100% of the time).
It was a problem in +/- signs when computing the clamping of the stabilization for the upper unilateral.
Fixed.