Update intersection.cpp

Added #ifdef _WIN32 for finite number testing