Merge pull request #44 from hrydgard/nominmax-fix

Avoid redefinition warnings of NOMINMAX by checking if it's already been defined.