Fix: unsigned char
Definitions and headers for threads added