Thanks for the responses. I am building on 64-bit Linux. I rebuilt azone2 as a 32-bit application and it runs fine.
And most importantly, the mobs in Moors follow the terrain now.
For any Fedora folks out there, you'll need:
zlib-devel-1.2.5-6.fc16.i686
I looked into building a working 64-bit version. There is some sort of sizing error, as the following is 20 bytes long rather than 12. Probably alignment.
Code:
struct struct_header {
unsigned long offset;
char magicCookie[4];
unsigned long unknown;
} typedef struct_header;
PS: Reading the structure field-by-field may be the easiest solution