Fix compilation with --disable-everything --enable-encoder=jpeg2000

The JPEG2000 encoder depends on the discrete wavelet transform.
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Fix compilation with --disable-everything --enable-encoder=jpeg2000

Merged-by: Michael Niedermayer <michaelni@gmx.at>