Add missing include of unistd.h so sleep() is declared