go.tools/go/gccgoimporter: backported some changes from godex implementation

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/82000043
1 file changed