Add isinf() if isinf() doesn't exist

Fixes a build problem on Solaris.  Though, this fix depends on isnan() existing.

If this fix isn't enough, we should just copy solarisfixes.h from Redis here too.