append is breaking cgo on linux