convert to using typelib's endian-swap instead of deprecated utilmm