simplify preprocessor directives

and remove a stray §?endif
[build] remove gen-cat.pl

we use gen-cat.nqp now