link time optimization only for static libs