Add wrapper function triggering perror() only if the application is in verbose mode.
When a file or a directory is modified add its path to the list of paths to rescan.
Open files with O_SYMLINK if defined, otherwise use O_NOFOLLOW if defined.