Some improvements to libpopt

libpopt has numerous warts. This patch (for version 1.7) and this patch (for version 1.8) make the following improvements to it:

© Copyright 2004 Jonathan de Boyne Pollard. "Moral" rights asserted.
Permission is hereby granted to copy and to distribute this web page in its original, unmodified form as long as its last modification datestamp information is preserved.