add unistd.h header for getopt in main.cpp
Merge pull request #4 from dougalsutherland/add-header

add unistd.h header for getopt in main.cpp