Enabled choice between multi-thread and single thread. Fixed sky
rendering on Linux