Improved exceptions and reporting exceptions for command-line compiler.

The one below is actually the only use of endl in my new code ;-)