Fix isfinite call on Windows MSVC < 2013