cgo: fixed golint's complaints