Replace isinf with std::isinf.

Using std::isinf causes compilation error in C++11 mode. This relates to https://github.com/jubatus/jubatus_core/pull/20.