Support the '--watch' compiler flag.

Fixes #268.
why do we need this?