Bug fixes

Made CorExitProcess exit the thread just like ExitProcess. Before it
would just return, but this was causing crashes.

Still need to fix bug where process comiled as multi-threaded DLL
doesn't get passed command line arguments.