add cross-compilation support for go compiler