Wine pthread_detach problem