check for UNIX when using usleep