Implement '--enable-library-stripping'.

Fixes #1622.
Merge pull request #1623 from 23Skidoo/library-stripping

Implement '--enable-library-stripping'.