Merge pull request #359 from tribal-tec/master

Fix Win32 build
Dispatch Qt widget creation and destruction to QApplication thread