Fix VC2010 which don't have std::isnan() et al.