Improvements to get framework compatible with cgminer.