Update build process. Add Kernel and Thread objects to the process.