Avoid MinGW/Cygwin warnings due to redefinition of NOMINMAX