Fix linking against jpeg.
As ${LOCALBASE}/lib is was not unconditionally part of the linker flags (only if
POSTGRES option was selected), linking of calligra could fail with
/usr/bin/ld: cannot find -ljpeg
Fix it, by using ${JPEG_LIBRARY} as provided by cmake.
PR: 218726
Approved by: rakuco (mentor)