Fixed Windows Desktop threads implementation