Fix threading build on Windows.
Fix threading build on Windows.

On Windows, including the "windows.h" header defines an enormous number of
symbols; some of which are macros with common names. In particular, "ERROR" and
"min" and "max" get defined. This causes clashes when user code references
these names in a context other than the intended use in windows.h.

To deal with this, the Microsoft engineers added the ability to control the
definition of these symbols by adding extra defines. In particular, including
windows.h in the following way

  #define NOGDI
  #define NOMINMAX

will reduce the number of macros defined. This way they will not conflict with
other uses in Ceres. For example, numeric_limits<double>::max() is impossible
to call without defining NOMINMAX.

Change-Id: I166f5d3bb6dc0e2e4b2ebf800fb19e49206f7874

jmwalls/ceres-solver-fork,ikoruk/ceres-solver,ikoruk/ceres-solver,ikoruk/ceres-solver,kartikkumar/ceres-solver,ikoruk/ceres-solver,stonier/ceres_solver,entylop/ceres-solver,whuaegeanse/ceres-solver,kartikkumar/ceres-solver,timfel/ceres-bin,jmwalls/ceres-solver-fork,ysonggit/ceres-solver,DougFirErickson/ceres-solver,DougFirErickson/ceres-solver,timfel/ceres-bin,whuaegeanse/ceres-solver,entylop/ceres-solver,kartikkumar/ceres-solver,whuaegeanse/ceres-solver,stonier/ceres_solver,ysonggit/ceres-solver,DougFirErickson/ceres-solver,jmwalls/ceres-solver-fork,jmwalls/ceres-solver-fork,ikoruk/ceres-solver,ysonggit/ceres-solver,ysonggit/ceres-solver,stonier/ceres_solver,DougFirErickson/ceres-solver,entylop/ceres-solver,stonier/ceres_solver,kartikkumar/ceres-solver,entylop/ceres-solver,timfel/ceres-bin,timfel/ceres-bin,whuaegeanse/ceres-solver