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.
You **must not** change glue functions. 
Newlib defines this function as `pid_t   _EXFUN(getpid, (void ));`.