Simplified the linking dependencies for the editor.

And fixed the pch handling according to this change.