Only add annotations of the current page when splitting

Bug #77549
Fix libopenjpeg 1.5 detection on some systems

Someone somewhere decided the pc file will be called libopenjpeg1 instead of libopenjpeg

Bug #78389