optarg/optind moved to unistd.h
update from Ralph
fixes from Ralph
credit where credit is due
from Ralph Campbell