BLD: special: fix build when system doesn't have isfinite macro