fix isinf, isnan in windows