MinGW libstdc++ may define `NOMINMAX` unconditionally. This fixes the case when it is already defined.