fixed 'usleep() not declared' on Ubuntu 13