update kernel to enable booting unpatched kernels
fix open flags in file copier
typedefify boot_item