Sent a patch to wine-patches for this one and the _set_error_mode() constants. With the patch applied your application should compile fine.
However note that _set_error_mode() and SignalObjectAndWait() are both stubs currently, which means that functionality is not implemented. So if your application calls either of them it will crash...
Ah... gotcha. I may just port the thread object to pthreads and be done with anyway.
Thanks.
Sean