Fixed some references to 'getopt' that need modifications for Windows.