build: add option to enable LTO for all packages