Add TMath::Abs(long double)
Use TMath::Abs instead of std::abs

Since on some platform there is not std::abs for integer
we have to use TMath::Abs.
Add TMath::Power for LongDouble_t
Fix portability issues with fmod.

Also use (extended) TMath::Power directly.