Replace isinf with std::isinf.

Using isinf (not std::isinf) causes compilation error on OS X 10.8.
Merge pull request #20 from gwtnb/std-isinf

Replace isinf with std::isinf.