[PATCH v6] libnvdimm: Fix endian conversion issues