Implement '--enable-library-stripping'.

Fixes #1622.