configure: fix detection of libopenjpeg