Removing stuff not needed in a library