Add method to register libraries