Fix unmaintained libraries because destroyer of releases is to lazy to implement it on its own

Backport to stable5 and stable6 is also required.
\cc @butonic