[Linux] Double buffer in case of XSHM
[Linux] Double buffer non-XSHM cases
[Linux] Use double buffer only in non-xshm cases
[Linux] Fix build error when USE_XSHM is not defined