Remove a build warning by reverting to old method of testing for HAVE_DECL_GETOPT. pointed out by a few.