removed old stuff in pdf2swf, added lib/mem.c,lib/mem.h