Add Qt5 compatibility.