Update libraries list to remove uneeded ones