moved kprintf, panic, warn, checksum etc. to klib.cpp