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