mostly to handle build directives in 1.17.
Had to use the hack from https://github.com/golang/go/issues/12443