core: Allow setting kernel.

https://github.com/veox/sgminer/issues/14