- rel 5; add fixes recommended by libreoffice team

https://bugreports.qt-project.org/browse/QTBUG-37380 (needed)
https://bugreports.qt-project.org/browse/QTBUG-34614 (needed)
https://bugreports.qt-project.org/browse/QTBUG-38585 (recommended)