Fix unit test building for Qt5