fixed isnan() compile time error

the -std=c++11 option requires that isnan() is qualified -> std::isnan()