Fix build error for Go 1.0.