fixing line number counting for comilation error output