Move <telos/msg.h> functions into klib
Fix preprocessor directives in <telos/process.h>

Fixes bug where __need_pid_t include prevented subsequent includes from
declaring functions.