Fixed compiling in Linux (sleep function)

I just changed the define in main.cpp,
in order to compile under my Ubuntu.
The header should also work under Windows,
but I did not tested.

Btw. nice pieco of code;)