[qmsystem] Enable building on Qt5