Update libraries in templates