small change for Windows

Make sure that on Windows the std::max from <algorithm> is
used instead of the max macro contained in windows.h (that
is the reason for adding the #define NOMINMAX in core/utils/log.h

This became necessary after Simon removed the using namespace std::
and added std:: everywhere. Suddenly std::max stopped working on
Windows (because max is apparently a macro in windows.h)