Remove some uses of boost libraries that can be done from C++11.

Including boost::integer_traits and boost::math::trunc().