Use Compiler API in Loader.

Now our command line always runs through our Compiler API.

Fixes #1324
Done. (I prefer these little functions next to their caller).