Linking the libraries in the library index