Fixed a few linux/posix issues for DirectoryWatcher