Rebuild when external dependencies change

Depends on mozilla/servo #2472.