Finesse how isinf and isnan are declared