Fix build with LTO