Fix missing #include for std::min on msvc (#16)