A bunch of 3.12 compat stuff

Merged Raphaël Gomès requested to merge topic/stable/mads-more-3.12-support into branch/stable

Merge request reports