Added error reporting to compilation
Merge pull request #2 from gsdlab/CompileErrorHandling

Added error reporting to compilation