Make build work for Qt5 as well.