fixed improved compilation error messages