compile llvm with lto and add fPIC

as requested in #3473