Fixed the reporting of compilation errors.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>