Manage X11 dependency on Linux

I've made an initial setup for fixing issue #57. I don't know if this is the preferred way of solving this issue so if it's no good: let me know.
Is there a reason to use xterma here? installing xterm didn't pull in that command (but I tested this pull request and it seems to work otherwise).