More error logging

rebar throws away some error messages, e.g. the ones generated if the yecc compiler is broken.
Merge pull request #81 from massemanet/patch-1

More error logging