Fix compilation for removal of link cache