Fix problem with visibility of linked Class. Partial fix of #1.