Remove ancient getopt implementation. Make examples compile.