fix build if cgo is disabled (go test will fail).