Rename TD (thread data) to TS (thread storage)
Added function to convert posix error codes to OpenKODE Core