Move 'syscall.c' remnants into klib

This file contained old code from when user library functions were
compiled into the kernel.