Moved C# compilation into its own thread.