fix compilation error with openjpeg v2. Bug: 281