compile fix for std::min
Merge pull request #1 from remoe/patch-1

compile fix for std::min