[qt5] Add qt5 packaging, some statefs build fixes