Support running without X on linux.

This adds the rust-layers support for using software (mesa) rendering mode.