Fix compilation with cgminer def