Added support for --watch switch in the compile task