Export CalcWork and BlocksPerRetarget.

This commit makes the CalcWork function and BlocksPerRetarget variable
available to external packages.