Generate lib classes.