Use scala compiler instead of interpreter

Using the scala compiler instead of the interpreter to check the syntax
means that an error will not be raised if there is a package
decleration.

Also, stopping the compiler after the parser stage stops errors being
raised when importing from other files in your project.
Merge pull request #436 from rumblesan/master

Use scala compiler, not interpreter, for syntax checking