Fixed MSVC/MinGW NOMINMAX incompatibility