cmd/cgo: initial import and translate. refs #47