Apple updates Mountain Lion, patches Safari