VC++ compatibility of isnan