Fixed build on dmd 2.066

isNaN and isInfinity were removed for integral types in DMD 2.066, so I `static if`-ed them out.