Add keccak mining algorithm

Keccak mining algorithm is used for copperlark (CLR) mining. Should be
configured with --enable-keccak. Also set_blockdiff function is changed,
cause netowork difficulty calculation bug wath noticed.