Workaround persistent problems with isinf & isnan on OSX