DjVu: prevent allocator mismatch (fixes issue 2696)