openjpeg.c: avoid casts of function pointers