Fixup invalid BUILD references.