Use %ld / %lx format for pointers on AIX to fix warnings.