Add #include <unistd.h> to provide prototype for getopt()