VC++ compatibility for isnan

removes error in Visual C++: error C2039: '_isnan' : is not a member of 'std'