Add toolchain support to build script