[Linux] Do not crash when talking to remote X server

XShmAttach will cause a Bad Access error when talking to a remote X server.
Fall back to  non-shm version
[Linux] Disable debugging output
[Linux] Fix a crash

'./r3-view-linux -v' could crash the interpreter
[Linux] Fix a memory leak when xshm is used

Old memory should be released before creating new one. This fixes the
memory leak when windows are resized.
Fix a memory leak

Memory from OS_Get_Locale should be free according to its doc
[Linux] Fix a crash in case of no display

to image! make gob! [] would crash the interpreter
[Linux] Fix memory leaks when resizing

OS doesn't release the memory associated with the shmget even after
the process exits.

How to handle the crash of the process?
[Linux] Free any remaining shm segments

Some of compositors don't have a chance to be destroyed when the
application quits, which will result in some leaked shared memory
segment.
[Linux] Debugging info