The sample now loading the kernel.

Also changed the kernel prefix to extern "C" to avoid C++ name mangling.