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.