Packaging fixes for Qt5