jel_alloc_buffer and appropriate mods for stegtester