Fixed #323 - Invalid index error when building D projects that reference other projects.