Enhance error reporting

We're now able to make the difference between a compiler bug and a user
trying to compile wrong thing, and report this correctly on the console.

Signed-off-by: Julien Danjou <julien@danjou.info>
Merge pull request #91 from jd/jd/better-error-reporting

Enhance error reporting