Fix isinf/isnan declaration conflict with C++11