fix line number offset for compilation errors