Use Compiler API in Loader.

Now our command line always runs through our Compiler API.

Fixes #1324
What is this _sourceRoot? Can we rely on that not changing?