Add forward declaration of std::type_info

gcc implicitly declares std::type_info, while clang does not.