Update mkstack.pl to match safestack.h