Fixing compilation errors on Windows/VisualStudio (msvc2013/Win64 specif...

...ically) - missing <algorithm> include for std::min and std::max