build: add option for reducing exports

As title suggests. We already do this a different way with gitian Linux builds (this can replace the linker script we use there). This is a bit of dogfooding to ensure that dev and pull-tester builds behave the same as final releases.

Hiding symbols by default also speeds up linking quite a bit, and forces good habits should we ever decide to produce shared libs.