xbm: use av_frame_free on close
X-Bitmap decoder
fate: add XBM tests
configure: Always use -DOPJ_STATIC when checking for openjpeg

Unbreaks cross-compiling on win32 systems.

Reported-By: Rafaël Carré <funman@videolan.org>