Fix sleep.

You need pthread to compile now, im not sure if its available in windows
but it should.

sleep now works, lel at Sleep(500).