Use the global isnan from math.h for Solaris (#461)