compress Lua C struct save/load