Change getopt.cpp to a linux version.
update getopt