dix #1 again, input.h including sys headers
fix #3 again, do not wrap linux/stat.h in ifdef KERNEL
mips has pid_t instead of __kernel_pid_t etc in siginfo.h unlike all other architectures