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.
My argument is invalid - I was under the influence of too much heat - I thought this was native.