Make set_work_target a function to set a specified char as target for use elsewhere.
Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining.