Add ifndef around NOMINMAX define