Remove some unused includes
Add support for exporting to a dynamic_kernel_instance