Trimming away unused libraries.