boost can compile with lto

as requested in #3473 :)