[toolchain] fix powerpc toolchain build failure on x86_64 hosts