fix linking of interfaces to classes
an interface may be defined after the class implementing it.