Fixed isnan compile error on some platforms

Add #include <math.h> to find C99 functions.
Thanks to David Gobbi.

Change-Id: Ia88708ab43fa5b4f26801449bbd910013077868f
Merge topic 'isnan-compile-fix' into master

ed8e013e Fixed isnan compile error on some platforms