define std::isnan for vs2012

This also removes the std::isfinite definition for vs2013, since it is taken care by math.h in vc120. So, all the math functions we are defining are for pre-vc120 windows compiler.