JTL.cc - Added include for cmath