only enable LTO if use-lto is true

When using clang, as with GCC, we shouldn't use LTO if the developer
has specified use-lto=false.