Problem: zsys_allocs is not defined as external

Solution: define properly in zsys.h.

Fixes #832
Merge pull request #833 from hintjens/master

Problem: zsys_allocs is not defined as external