Revert "go1.1 changed the size of an int on 64bit architectures from 32bits to 64bits which causes weird issues when casting ints from c-land"

This reverts commit 7a6594d6c67021e9150135824ea89784d0923a4f.