Remove lgamma and replace by TMath::LnGamma which should work across platforms.