Fix compiler warning:

array subscript has type ‘char’ [-Werror=char-subscripts]
Cygwin: fix compilation

tm-threads.c:1190:5: error: unknown type name ‘DWORD’
Cygwin: make configure pass with -Werror