Add friend class def_visitor_access for XQillaDefVisitor.
Add the cast def_visitor for some ReferenceCounted class.
Add dom-api.