apply patch before multilib