Run user interface in a seperate process.

This is needed because apperantly we can create a QApplication
instance multiple times in the same process. If this changes in
a future version of Qt, this workaround should be removed.