Use amiga pool function for memory handling in libjpeg.