Copy references into local extern and link.