Fixing compile errors on Windows with MSVC. No INFINITY defined for Visual Studio. Using the one defined in the 'std::limits' namespace instead.