add unistd.h header for getopt in main.cpp

I get compile errors without this.