Fix getenv for golang
Some C++ updates