Fix #26, Change in endianness detection due to gcc compiler bug