Make compatible with go1.2