Libify kernel code, and update dependant projects as relevant.