merged newest port-ckolivas

Allow running cgminer in benchmark mode with a work file --benchfile