licq: make it possible to cast a plugin factory to a internal interface