added util.c checks from https://github.com/fogleman/Craft/pull/82