fix build with go >= 1.1