Combine WorkerThread and ProgressDialog into WorkerProgress which forces all GUI calls to be done on main thread. This fixes the crashing when doing the conversion. Remove ProgressDialog's usage of worker_thread. Compile with wxUSE_THREADS.