Compilation fixes for inotify.