Bug Fixes compiler: use file system polling events in watch mode (#4147) (7f3d514), fixes #3952, #4011, #4044