Fix cross compile

lets see if we can use `int32_t` and accient platforms like OSX 10.5