Modernize some code in backends, screenedge, decorationbridge and kwingltexture. See the commits for details