isnan() is not working on non-x86 s. Using std::isnan()

Reference: http://stackoverflow.com/questions/18128899/is-isnan-in-the-std-namespace-more-in-general-when-is-std-necessary-optio

Signed-off-by: Soroush Rabiei <soroush.rabiei@gmail.com>