Finalize library classes.