Fix for building external references.
Merge pull request #3335 from DigitalRune/Build-ExternalReferences

Fix for building external references