Allow building with or without Poppler-Qt5 via the build option POPPLER_QT5_LIB.