windows: guard `std::min` and `std::max` usage

DIY headers may be included in an environment where windows.h was included without NOMINMAX and therefore expose macros which conflict. Safeguard usages to avoid invoking the macro expansion.

Merge request reports

Loading