Discover and link C stub dependencies in --xen mode