Pass toolchain to gen.file in C generator tests