Adapted gen.pl with 'listcats' This commit is a part of "--help me if you can" Closes #5680
Assisted-by: Ray Satiro Bug: https://curl.haxx.se/mail/lib-2017-03/0002.html