Fix Windows warnings-as-errors introduced by ref-awmodule

NOMINMAX is common enough that some embedded configurations define it on the command line.  We need to check to see if it's defined before we go defining it, otherwise the result will be a bunch of warnings-as-errors.