Add build flags to enable/disable miner in the build.
Add build flags to enable/disable miner in the build.