fix shared memory file size larger than truncated
remove unportable endian.h dependency
bindings: fix non-construct argv creation