Fix anchors for symbols from libraries.