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)