auth: fix build on go1 and 386

In Go1, all integers were 32 bits. Now in Go 1.1/tip, they're 64 bits on
amd64, and 32 bits on 386. This commit fixes the build on travis (that
runs go 1.0.3) and 32 bits systems.