fix toolchain so it copes with .gz archives, and runs prepare stage for ia32