Moved fe_kernel_shim_xxx into C.