Add support for compiling on AIX

Closes #1900
Clarify AIX "#undef hz".