Fix missing location information for included files

fixes #7927