Stop including math/logsum.H when not necessary.
Stop using std::exp and std::log.

Its not necessary, apparently.