cgminer: sync with upstream