Use Namecoin's modified difficulty retargeting.

Add the code that fixes the retargeting period off-by-one error.