define 'NAN' in fitcurves.cpp

define NAN in windows platform