Make sure that that termbox is set up before renderThread starts. Also, misc cleanup
I shall commit harakiri for my sins
Merge pull request #382 from Joushou/moreglitches

Make sure that that termbox is set up before renderThread starts.