1.3 fix invoke main thread

Mono does not always handle System.Windows.Forms.Form.Invoke correctly. This is a workaround that I have used successfully in another project.