Clean cgminer 3.1.1 code