Added getopt.h include to enable building on Linux.