try installing libx11-dev