fix compilation error messages bug

Fix for #179