Added cast from zmalloc, and STRONGER WARNINGS