Use portable macros for isinf/isnan/isfinite