Fix isinf on Mac OS X