xa: do not keep the whole ES format around
bin: fix SIGSEGV at exit on OS/2

--stats was added at commit c24ea5fb3af17c08ea12d94a106577d06e9f4870.
So free arguments after this.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
os2: make high-memory safe

Some OS/2 APIs are not high-memory safe. So there are needs to use wrapper
functions to make them high-memory safe.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>