BUG-FIX: added #include <unistd.h> for sleep(...) and usleep(...) usage
(solved some problems previously indicated by warnings)