Add support for std::ratio.