Go 1.0 compat fix.

Fixes #56.