Support the '--watch' compiler flag.

Fixes #268.