compile openjpeg always in release mode

compile openjpeg as static library and link the knossos
binary against it