Fixed building with NOMINMAX defined.