added getopt source for Windows