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 3fda28125d55ccc2116069e90c4dbc8849eb85ce.