Only use std::isfinite on windows for marching cubes implementation.