Rebuild when external dependencies change

Depends on mozilla/servo#2472.
Merge pull request #82 from mbrubeck/ext-deps

Rebuild when external dependencies change
merged from upstream; language updates: ~str -> StrBuf.