core: harmonizes the data type for the process ID

Instead of using arbitrary integer types use pid_t as provided by the
toolchain.

Closes #210.
if kernel_pid_t is unsigned _kill cannot return -1 (indicate error).