Apply AVRO-1369 fix until we upgrade to avro-c 1.7.6
Explicitly require unistd.h for getopt (to make the code C99-compatible)
Merge pull request #4 from swiftype/pr-fix-macos-build

Fix compilation on MacOS