CR #347:

* Cleaner way to figure out if window system need main thread event
  dispatch
* Cleaner destruction of qt::GLWidget using bound method
* Cleanups
Merge pull request #2 from eile/master

CR Eyescale/Equalizer#347