Properly detect if we are on X11
Merge pull request #2 from crumblingstatue/x11detect

Properly detect if we are on X11