- Only add X_CFLAGS to CFLAGS as last thing in configure. - Added big-endian check.
- Only add X_CFLAGS to CFLAGS as last thing in configure.
- Added big-endian check.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb