Make mining support optional

Intention: make it possible for a libsecp256k1 experimental build mode to disable wallet and mining.
What do these have to do with mining?