kexec: change from system calls to /dev/kexec handling
add debugging + bugfix