changed structure of libprog
no warnings on alloc.c