Fixed the reporting of compilation errors.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #206 from ddobrev/master

Fixed the reporting of compilation errors