Make mining support optional

Intention: make it possible for a libsecp256k1 experimental build mode to disable wallet and mining.