fixing usleep on linux