Improved compilation messages (completes #176)