speed up static linking by combining `ar` invocations