Fix reporting of warning and error line numbers for the changes to the compiler stages