For WIN32, added thread id to debug string.