Fixed Windows RT compile issues with sleep

Apparently, Microsoft chose not to include some of the multithreading
calls, so I had to implement a workaround