added control of thread id, fixed bug with wrong calc_id in FIN signal, removed glib threading, rewritten in pthread
pthread_t replaced by int64_t fow windows compatibility and hw-independence
some name fixes