Apply gentoo lto changes to gcc-4.8