More metaprogramming to deal with lack of std::ratio in VS2010.