Move libtext into kernel