cdb: fix data length value

During the switch to using endian.h the data length value was set
incorrectly to that of the key length.
configure: add ACX_HEADER_ENDIAN macro

Add and use ACX_HEADER_ENDIAN macro to find the appropriate
endian.h.