Clean out everything not needed for a functional library