Removed getopt checking and getopt() from lib/contrib.