Remove unneeded kernel headers and other packages.