Replace usleep through QThread::usleep

It removes the need of the unistd.h and this means you don't need
anymore the kdewin dependency on Windows.