s3-libnetapi: Cope with popt versions without POPT_TABLEEND