Support the '--watch' compiler flag.

Fixes #268.
this code should ensure that even if we get multiple notifications in a short period of time, we only recompile once.