Try to fix build without Poppler
KPOPPLER_VERSION isn't defined in that case, so using that in an unguarded header is a problem.