The attached patch makes alex4 write its files in an endian-independent way, so that they are portable between different computer architectures.
patch
patch