Improved --check-library messages