Modify tests to compile on AIX with xlC compiler.

- `int64` typedef collision with `sys/inttypes.h`
- `xlC` complains about `int` and pointer comparisons without casts