Rely on C++11 to implement isinf and isnan