Code refactoring: replaced macro 'XSHM' by 'USE_XSHM' for consistency