std::min() compiler error on windows