Removed the NOMINMAX compiler option, using undefs to avoid the conflict between std::numeric_limits and Windows headers.