Define isfinite when compiling with Microsoft Visual Studio.