Fixed heap checker test.

This patch changes the way that heap checker test identifies the
architecture's endianness. The test was using _Call_Elf to know if the
machine is Big Endian, but the _Call_Elf not always is defined in ppc64
BE and always is defined in LE machines.