Support the '--watch' compiler flag.

Fixes #268.
in the future I would do such a change in a separate commit at least, as it makes the change noisy