Dispatcher fixes

There was UnityEditor stuff inside the MainThreadDispatcher.