Fixing issue with g++ 4.6 (std::isinf conflicts with ::isinf). Closes #16