Latest version of util.c from cgminer repo