lto-related fixes