cgminer.c: cleanup of benchmark code