Fixed Linux kern.c test program. Removed warnings: unused function
(for ERTs) warnings are left.