Autodetect valid SHM transport

Hi, just stumbled across meh and thought you would appreciate automatic detection of usable shm transport along with support for utilizing ShmPixmaps.