Shift the job of defining NOMINMAX into source rather than the build system