graphics/leptonica: fix build with openjpeg 2.5.0
ChangeLog: https://github.com/DanBloomberg/leptonica/issues/623
Fix detection of openjpeg 2.5.0
PR: 264684
Reported by: vvd@unislabs.com
Approved by: hiroto.kagotani@gmail.com (maintainer, timeout > 1 month)