[inotify] refactor libc loading and improve error handling
2 files changed