Use absolute line numbers for the quick-fix windows.
Use a plugin allowing to open files at a specific line