Added macro _CX_MULTI_THREADED to prefix logging with thread ID.
(includes pthread.h)