More compatibility fixes with endian.h
More compatibility fixes with endian.h

cauchycui/webdis,cauchycui/webdis,cauchycui/webdis,nicolasff/webdis,boothj5/webdis,mrkeng/webdis,mrkeng/webdis,mrkeng/webdis,boothj5/webdis,cauchycui/webdis,nicolasff/webdis,boothj5/webdis,mrkeng/webdis,nicolasff/webdis,nicolasff/webdis,boothj5/webdis,nicolasff/webdis