Rebuild when external dependencies change

Depends on mozilla/servo#2472.  This lets the Servo build system set an $EXT_DEPS environment variable so that libencoding will be recompiled correctly after the libraries it depends on are rebuilt.