Automatically install required libraries.