Add support for direct references in external projects.