Fix build for gccgo.

gccgo requires uintptr types to be explicitly type converted back to a
uintptr before they can be used as an unsafe.Pointer.

Fixes #20.