hammerhead: fix kernel build and remove dependencies