fix build with go < 1.1

Fixes #2