I am a huge fan of the improvements that were done by Serge Gautherie and hbelusca in
Therefore I want to port those back into older branches.
Since those changes are heavily interweaved with other changes to the same lines, it would be very hard and error-prone to just "pick" the existing squashed commit from master. Therefore I instead decided to cleanly reapply all the changes from this PR individually.
Not squashing them is done intentionally here for improved reviewability.
I will stoically apply the individual changes one after the other, even if that leaves some issues within some of the touched lines remaining temporarily. I am aware of them. And I will address them with the later commits (the 'extra fixes'). So no need to point me to them!