delete various unused things from compile.lem and associated files

precursor to more cleanup and splitting it into meaningful units