Added check for already defined NOMINMAX