fix gcc toolchain optimization patch to the correct arch