Added some compile time switches to disable desktop features.