vs2010 compile fix (std::min -> qMin) and a comment to help with vs2010