file watcher using freebsd libinotify