Fix compilation with go 1.1

http://golang.org/doc/go1.html#errors