Add helpers for exporting symbols.
Add helpers for refcounting with multiple inheritance.