Fix typedef clashes on AIX with <sys/types.h>

Bug 523848
This also fixes a compile problem with zero sized arrays
2 files changed