Revert "Inline kernel building"

This reverts commit 3e9f115ce6637088d285e73367fc780c5a596769.