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