Added -lz needed for newer compiler.
Initialise array pointers for object lists.