Remove unused libraries.