fix windows std::isnan problem