Fix lto option in gcc 4.9 by using gcc-ar / gcc-ranlib