build: add a config knob to enable LTO for all packages