Rewrite import paths for vendor dependencies

This makes `go build` and `go test` work again.