core: Provide ssize_t in a common place

Now you can include `kernel_types.h` if you need the `ssize_t`, without
facing problems due to the terrible MSP toolchain.
I'd like you to split this into a separate commit or at least make it obvious in the commit message.