Strip out unused classes, definitions, resources, and libraries