Make sure that 'ranlib' runs only after 'ar' is completed.