Added necessary include for getopt on OSX